<h1>演示：自己封装的工具库</h1>


<h1>日期格式化</h1>
<script src="./utils.js"></script>
<script>
    time1('2021-11-26 10:14:00')
</script>

<h1>图片懒加载</h1>
<img src="./img/0.png" src-real="./img/1.png" height="300"> </br>
<img src="./img/0.png" src-real="./img/2.png" height="300"> </br>
<img src="./img/0.png" src-real="./img/3.png" height="300"> </br>
<img src="./img/0.png" src-real="./img/4.png" height="300"> </br>
<img src="./img/0.png" src-real="./img/5.png" height="300"> </br>
<img src="./img/0.png" src-real="./img/6.png" height="300"> </br>
<script src="./lazyload.js"></script>
<script>
lazyload()
window.onscroll=lazyload
</script>



<h1>判断是否是移动</h1>
<script src="./utils.js"></script>
<script>
console.log(browser)
</script>